package com.qf.java2201.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author hanhan
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Notice {
    //公告信息id
    private Integer notice_id;

    //发布人员
    private String rele;

    //公告信息发布时间
    private String rele_title;

    //公告信息内容
    private String content;


    //发布时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rele_time;


    public String getRele() {
        return rele;
    }

    public void setRele(String rele) {
        this.rele = rele;
    }

    public String getRele_title() {
        return rele_title;
    }

    public void setRele_title(String rele_title) {
        this.rele_title = rele_title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getRele_time() {
        return rele_time;
    }

    public void setRele_time(Date rele_time) {
        this.rele_time = rele_time;
    }

    public Notice(String rele, String rele_title, String content, Date rele_time) {
        this.rele = rele;
        this.rele_title = rele_title;
        this.content = content;
        this.rele_time = rele_time;
    }
}
